import A from '@/views/a.vue'
import B from '@/views/b.vue'
import C from '@/views/c.vue'
import D from '@/views/d.vue'
import Dl from '@/views/dl.vue'
import E from '@/views/e.vue'
import Gwc from '@/views/gwc.vue'
import Ss from '@/views/ss.vue'
import Xq from '@/views/xq.vue'
import Zc from '@/views/zc.vue'

import { createRouter, createWebHistory } from 'vue-router'


const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/a',
      
      component: A,
      children:[
        {
          path: 'b',
      
      component: B,
        },
          {
          path: 'c',
      
      component: C,
        },
          {
          path: 'd',
      
      component: D,
        },
          {
          path: 'e',
      
      component: E,
        },
      ]
    },
    {
       path: '/dl',
      
      component: Dl,
    },
      {
       path: '/zc',
      
      component: Zc,
    },
     {
       path: '/ss',
      
      component: Ss,
    },
     {
       path: '/xq/:goods_id',
      
      component: Xq,
    },
    {
       path: '/gwc',
      
      component: Gwc,
    },
  ],
})

export default router
